{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('show') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ dry_path("group_new") }}" data-route="group_new">{{ dry_translation('new') }}</a>
        <a class="btn btn-outline btn-info" href="{{ dry_path("group_edit", group.id) }}" data-route="group_edit">{{ dry_translation('edit') }}</a>
        <a class="btn btn-outline btn-info" href="{{ dry_path("group_index") }}" data-route="group_index">{{ dry_translation('list') }}</a>
    </div>
{% endblock %}
{% block body %}
    <table class="table">
        <tbody>
            <tr>
                <th style="border-top:none;">{{ dry_translation('Group.id') }}</th>
                <td style="border-top:none;">{{ group.id }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('Group.name') }}</th>
                <td>{{ group.name }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('Group.roles') }}</th>
                <td>{{ call_method('choiceShow', rolesArray, group.roles)|nl2br }}</td>
            </tr>
        </tbody>
    </table>
{% endblock %}
